package com.bro.person.base.enums.error;

/**
 * @author swallow
 * Created by swallow on 2018/9/7.<br>
 */
public enum GlobalEnum {
    BRO_SYSTEM_ERROR(10010,"system error!"),
    BRO_NOT_FOUND_MAPPING_ERROR(10011,"not found mapping error!"),
    BRO_USER_NOT_EXIST_ERROR(10020,"user not exist"),
    BRO_USER_PASSWORD_ERROR(10021,"user password error"),
    BRO_UNAUTHORIZED_ERROR(10030,"unauthorized"),
    BRO_AUTHORIZED_SUCCESS(10031,"authorized success"),
    BRO_USER_LOGIN_ERROR(10040,"user login error"),
    BRO_USER_LOGIN_EXPIRE(10041,"user login expire"),
    BRO_ADMIN_ADD_SUCCESS(10050,"backgroud add success"),
    BRO_ADMIN_ADD_ERROR(10060,"backgroud add error"),
    BRO_ADMIN_UPDATE_SUCCESS(10070,"backgroud update success"),
    BRO_ADMIN_UPDATE_ERROR(10080,"backgroud update error"),
    BRO_ADMIN_DELETE_SUCCESS(10090,"backgroud delete success"),
    BRO_ADMIN_DELETE_EROOR(10100,"backgroud delete error"),

    BRO_ADMIN_PARAM_EROOR(10110,"param error"),
    ;
    private int code;

    private String message;

    GlobalEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
